from gen122 import generate_prices
from alg122 import Solution

def test_max_profit():
    # 生成价格数据
    prices = generate_prices(10)
    print("Prices:", prices)

    # 执行算法
    sol = Solution()
    profit = sol.maxProfit(prices)
    print("Max Profit:", profit)

if __name__ == "__main__":
    test_max_profit()
